<script type="text/javascript">
	$(document).ready(function(){
		$.validator.messages.required = "";
		$.validator.messages.date = "";
		$("#FormHoSoCaNhan").validate();
	});
</script>

<?php
	$nguoidung = new nguoidungbs();
	$nguoidung->MaNguoiDung = $_SESSION['MaNguoiDung'];
	$danhsach = $nguoidung->GetList();
?>
<h3>HỒ SƠ CÁ NHÂN</h3>
<form id = "FormHoSoCaNhan" action="index.php?do=hosocanhan_xuly" method="post" enctype="multipart/form-data">
	<table class="Form">
		<input type="hidden" value="<?php echo $danhsach[0]["MaNguoiDung"]; ?>" name="MaNguoiDung" />
		<tr>
			<td>Họ và tên:</td>
			<td><input type="text" value="<?php echo $danhsach[0]['TenNguoiDung']; ?>" name="TenNguoiDung" class = "required"/><span class="requirefield">*</span></td>
            <td rowspan="4"><img src="<?php echo $danhsach[0]['HinhAnh']; ?>" width="150" /></td>
		</tr>
		<tr>
			<td>Tên đăng nhập:</td>
			<td><input type="text" value="<?php echo $danhsach[0]['TenDangNhap']; ?>" name="TenDangNhap" disabled="disabled" /></td>
		</tr>
		<tr>
			<td>Địa chỉ:</td>
			<td><input type="text" value="<?php echo $danhsach[0]['DiaChi']; ?>" name="DiaChi" /></td>
		</tr>
		<tr>
			<td>Email:</td>
			<td><input type="text" value="<?php echo $danhsach[0]['Email']; ?>" name="Email" class = "required" /><span class="requirefield">*</span></td>
		</tr>
		<tr>
			<td>Điện thoại:</td>
			<td><input type="text" value="<?php echo $danhsach[0]['DienThoai']; ?>" name="DienThoai" class = "required"/><span class="requirefield">*</span></td>
		</tr>
        <tr>
			<td>Hình đại diện:</td>
			<td><input type="file" name="HinhAnh" class = "required" /><span class="requirefield">*</span></td>
		</tr>
	</table>
	
	<p class="requirefields">(*): Các trường bắt buộc phải nhập.</p>
	<input type="submit" value="Cập nhật hồ sơ" />
</form>